﻿<%@ Page Title="" Language="C#" MasterPageFile="~/templet/userUpdateTemplet.master"
    AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="u_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    
    <style>
       body,div,p,ul,ol,li,dl,dt,dd,form,h1,h2,h3,h4,h5,h6{margin:0;padding:0;}
img{border:0 none;}
a{text-decoration:none;}
a:hover{text-decoration:underline;}
ul,ol,li{list-style:none;}
h1,h2,h3,h4,h5,h6{font-size:12px;}
       
    .post_main .hd{height:35px;width:800px;border-bottom:1px solid #dbdbdb;}
.post_main .hd ul{float:left;margin-left:-1px;}
.post_main .hd li{float:left;height:35px;padding:0 10px 0 11px;font-size:14px;line-height:35px;position:relative;bottom:-1px;}
.post_main .hd li b{position:absolute;left:0;top:13px;display:block;width:1px;height:10px;background:url(/images/index_sprites.gif) no-repeat -106px 0;}
.post_main .hd li a{display:block;color:#666;font-size:14px;}
.post_main .hd li.on{background:url(/images/post_tab_arr.gif) no-repeat bottom center;}
.post_main .hd li.on a{color:#000;}
.post_main .hd .new_post{float:right;padding:6px 5px 0 0;}
.post_main .hd .new_post a{display:block;width:105px;height:27px;background:url(/images/index_sprites.gif) no-repeat 0 -100px;overflow:hidden;line-height:100px;}
.post_main .post_item{padding:20px 0;border-bottom:1px dashed #dbdbdb;}
.post_item .avatar{float:left;width:48px;height:48px;margin-right:5px;display:inline;}
.post_item .avatar img{width:48px;height:48px;}
.post_item dt p{height:25px;line-height:20px;}
.post_item dt p a{font-size:16px;font-weight:bold;_font-size:14px;color:#ffaa00;}
.post_item dt p a:hover{_font-size:14px;_color:#ffaa00;}
.post_item dt p a.top{padding-right:20px;background:url(/images/post_top.gif) no-repeat right center;}
.post_item .author{float:left;height:25px;color:#4d4d4d;line-height:25px;overflow:hidden;}
.post_item .author a{color:#e58a00;}
.post_item .author a img{float:left;margin:4px 5px 0 0;}
.post_item .author1{float:left;width:400px;}
.post_item .author2{float:left;width:280px;}
.post_item .author2 a img{}
.post_item .status{display:inline;margin-left:10px;color:#4d4d4d;line-height:25px;}
.post_item .status a{color:#e58a00;font-size:11px;}
.post_item dd{padding-top:10px;}
.post_item .post_info{float:left;width:630px;}
.post_item .post_info .photo{float:left;margin-right:15px;}
.post_item .post_info p{font-size:14px;color:#666;line-height:23px;}
.post_item .up{float:right;width:60px;text-align:center;color:#de9400;}
.post_item .up a{width:28px;height:26px;display:block;margin:0 auto 5px;background:url(/images/index_sprites.gif) no-repeat -108px 0;line-height:100px;overflow:hidden;}
.post_item .up a:hover{background-position:-108px -27px;}

    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <!--签到开始-->
    <script language="Javascript">
 <!--
        //

        function mystatus_init() {
            //搜索框加载

            $("#mystatus").css({ "font-size": "12px", "color": "Gray", "font-weight": "normal" });
            $("#mystatus").value = "输入我的状态";
        }



        function mystatus_onblur() {

            if ($("#mystatus").attr("value") == "") {
                $("#mystatus")[0].value = "输入我的状态";
                $("#mystatus").css({ "font-size": "12px", "color": "Gray", "font-weight": "normal" });
            }
        }

        function mystatus_onFocus() {

            if ($("#mystatus")[0].value == "输入我的状态") {
                $("#mystatus")[0].value = "";
                $("#mystatus").css({ "font-size": "14px", "color": "Black", "font-weight": "normal" });
            }



        }

        function sendStatus() {

            //数据校验
            //alert($("#mystatus")[0].value);
            if (($("#mystatus")[0].value == "输入我的状态") || ($("#mystatus")[0].value == "")) {
                new Dialog('请输入您的状态', { time: 2000 }).show();

            }
            else {
                $("#sendload").css({ "display": "inline" });
                $.ajax({
                    type: "POST",
                    contentType: "application/json",
                    url: "/webservices/usermain.asmx/updateSign",
                    data: "{sign:'" + $("#mystatus")[0].value + "'}",
                    dataType: "json",
                    error: function (x, e) { },
                    success: function (msg) {
                        if (msg.d == "1") {

                            if ($("#mystatus")[0].value.length > 40) {
                                $("#m-sign").text($("#mystatus")[0].value.substr(1, 39) + "...");
                            }
                            else {
                                $("#m-sign").text($("#mystatus")[0].value);
                            }
                            $("#mystatus").val("输入我的状态");
                            $("#mystatus").css({ "font-size": "12px", "color": "Gray", "font-weight": "normal" });
                            $("#sendload").css({ "display": "none" });
                        }
                        else {
                            if (msg.d == "90") {
                                new Dialog('未输入您状态', { time: 2000 }).show();
                                $("#sendload").css({ "display": "none" });
                            }
                            else if (msg.d == "91") { new Dialog('您输入的状态太长了，请控制在2000字以内', { time: 2000 }).show(); $("#sendload").css({ "display": "none" }); }
                            else if (msg.d == "0") { new Dialog('您还未登录，现在就去登录吧', { time: 2000, afterShow: function () { window.location.href = '/u/userlogin.aspx' } }).show(); $("#sendload").css({ "display": "none" }); }

                        }

                    }
                });

            }
        }
 //-->
    </script>
    <table width="800" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td width="450">
                <table width="450" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td>
                            <table width="450" border="0" cellspacing="0" cellpadding="0" style="height: 43px;
                                line-height: 20px;">
                                <tr>
                                    <td>
                                        我的出行计划</td>
                                    </div>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td style="background-image: url(../images/wbbg.gif); background-repeat: no-repeat;
                            height: 70px;">
                            <table width="450" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td width="20px">
                                        &nbsp;
                                    </td>
                                    <td>
                                        <input id="mystatus" class="basic-input-sample" style="width: 400px; height: 16px;
                                            color: Gray" title="输入我的状态" value="输入我的状态" oninit="mystatus_init();" onfocus="mystatus_onFocus();"
                                            onblur="mystatus_onblur();" />
                                    </td>
                                    <td width="20px">
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td style="font-size: 12px; line-height: 20px">
                                        &nbsp;<input type="button" value="发布" class=" btn_blue" onclick="sendStatus();" />
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </td>
            <td width="350" valign="top">
                <table style="width: 100%;">
                    <tr>
                        <td>
                            <span style="font-size: 12px; color: Orange">我参加的小组</span>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span style="font-size: 12px; color: Orange">最近访问好友</span>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <!--签到结束-->
    <table width="100%" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                <table style="width: 100%;">
                    <tr>
                        <td colspan="3">
                        <div class="post_main">
                            <div class="hd">
                                <ul id="pnl_btns">
                                    <li class="on"><a id="btn_tp0" href="javascript:void(0)" title="热门旅行游记">热门游记</a></li>
                                    <li><a id="btn_tp1" href="javascript:void(0)" title="最新旅游攻略">最新发表</a><b></b></li>
                                    <li><a id="btn_tp2" href="javascript:void(0)" title="旅行游记热榜">一周热榜</a><b></b></li>
                                </ul>
                                <div class="new_post">
                                    <a href="/g/infoadd.aspx">发表新游记</a></div>
                            </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
